<?php

class Erra_Util_Validator {

    public static function isValidURL($url) {
        return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);
    }

    public static function validate($field, $FILTER, $optionalMessage=null, $optionalInput=null) {
        
    }
}